package com.yingxin.yxerp.module.common;

/**
 * 静态文件销售章
 */
public enum OfficialSealType {


    HT("101", "101.png"),
    XT("102", "102.png"),
    YX("103", "103.png"),
    AR("108", "108.png")
    ;

    private String type;

    private String staticUrl;

    OfficialSealType(String type, String staticUrl) {
        this.type = type;
        this.staticUrl = staticUrl;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStaticUrl() {
        return staticUrl;
    }

    public void setStaticUrl(String staticUrl) {
        this.staticUrl = staticUrl;
    }

    public static OfficialSealType getEnum(String type) {
        for (OfficialSealType t : OfficialSealType.values()) {
            if (t.getType().equals(type)) {
                return t;
            }
        }
        return null;
    }

}